<form action="?u=cuser\my-fpaEdit&act=s" method="post" class="post-tr" onsubmit="return sg();" style="margin-top:25px">
  <span class="sh">当前密码：</span>
  <span class="sp"><input type="password" name="u[old]" value="" /></span>
  <span class="sh">新密码：</span>
  <span class="sp"><input type="password" name="u[new]" value="" id="l_password" /></span>
  <span class="sh">重输新密码：</span>
  <span class="sp"><input type="password" name="u[new2]" value="" id="l_password2" /><i id="er_password2" class="err-note"></i></span>
  
  <div class="separator"></div>
  <span class="sh"></span>
  <span class="sp"><input type="submit" value="提交" class="submit" /></span>
</form>
<script>
function sg(){
if ( $('#l_password').val()!=$('#l_password2').val() ){
    $('#er_password2').text('密码不一致').show().delay(1200).fadeOut(400);
    return false;
}
return true;
}
</script>

